package com.teemor.common.idempotentspringbootstarter.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @author zhoulk
 * @date: 2020/5/12
 */
@Aspect
@Component
public class IdempotentAop {

    @Pointcut("@annotation(com.teemor.common.idempotentspringbootstarter.annotation.IdempotentApi)")
    public void validAnnotationPointcut() {}

    @Before("validAnnotationPointcut()")
    public void before(JoinPoint joinPoint) {

    }

}
